package com.example.webapp.payload;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "API响应对象")
public class ApiResponse {
    @ApiModelProperty(value = "操作是否成功")
    private Boolean success;

    @ApiModelProperty(value = "响应消息或内容")
    private Object message;

    public ApiResponse(Boolean success, Object message) {
        this.success = success;
        this.message = message;
    }

    // Getters and Setters
    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public Object getMessage() {
        return message;
    }

    public void setMessage(Object message) {
        this.message = message;
    }
} 